package ${package.Controller};

import org.springframework.web.bind.annotation.RequestMapping;
<#if restControllerStyle>
import org.springframework.web.bind.annotation.RestController;
<#else>
import org.springframework.stereotype.Controller;
</#if>
import io.swagger.annotations.Api;
<#if superControllerClassPackage??>
import ${superControllerClassPackage};
</#if>

/**
* ${table.comment!} 前端控制器
* @author 张众森 (个人博客:https://)
* @date ${date}
* @tags 做一个优秀的全栈架构
*/
@Api(tags = "${entity}控制器")
<#if restControllerStyle>
@RestController
<#else>
@Controller
</#if>
@RequestMapping("<#if package.ModuleName?? && package.ModuleName != "">/${package.ModuleName}</#if>/<#if controllerMappingHyphenStyle>${controllerMappingHyphen}<#else>${table.entityPath}</#if>")
@BaseServiceOf(${entity}.class)
<#if kotlin>
class ${table.controllerName}<#if superControllerClass??> : ${superControllerClass}()</#if>
<#else>
<#if superControllerClass??>
<#--public class ${table.controllerName} extends ${superControllerClass} {-->
public class ${table.controllerName} extends BaseController<${entity}, ${entity}FormDto, ${entity}QueryDto,${entity}Vo> {

<#else>
public class ${table.controllerName} {
</#if>
}
</#if>